package com.yxt.qmgf.home.ctrl;

import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.VBox;

import java.net.URL;
import java.util.ResourceBundle;

public class HomePageController implements Initializable {
    @FXML
    private VBox vbox;

    private static final String DEFAULT_IMAGE = "config/ui/home.png";

    @Override
    public void initialize(URL location, ResourceBundle resources) {
        initView();
    }

    private void initView() {

        ImageView backgroundImageView = new ImageView("file:" + DEFAULT_IMAGE);

        // 创建一个AnchorPane来放置链接
        AnchorPane anchorPane = new AnchorPane(backgroundImageView);
        vbox.getChildren().add(anchorPane);
    }
}
